using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;

namespace Sedna.Core.Controller.Configurations
{
    public class CompareValidatorConfiguration : ValidatorConfiguration, ICompareValidatorConfiguration
    {
        private string controlToCompare;
        private string valueToCompare;
        private ValidationDataType type = ValidationDataType.String;
        private ValidationCompareOperator compareOperator = ValidationCompareOperator.Equal;

        public string ControlToCompare
        {
            get
            {
                return this.controlToCompare;
            }
            set
            {
                this.controlToCompare = value;
            }
        }

        public string ValueToCompare
        {
            get
            {
                return this.valueToCompare;
            }
            set
            {
                this.valueToCompare = value;
            }
        }

        public ValidationCompareOperator Operator
        {
            get { return compareOperator; }
            set { compareOperator = value; }            
        }

        public ValidationDataType Type
        {
            get { return type; }
            set { type = value; }
        }
    }
}
